﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Ovvio.Web.Areas.Admin.Models.PromoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Promo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Promo</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
           
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Description) %>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateStart) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateStart, String.Format("{0:g}", Model.DateStart)) %>
                <%= Html.ValidationMessageFor(model => model.DateStart) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateEnd) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateEnd, String.Format("{0:g}", Model.DateEnd)) %>
                <%= Html.ValidationMessageFor(model => model.DateEnd) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

